package com.kede.api.level.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

/**
 * 任务与用户关联表查询请求信息
 * 2024-02-04 12:10:20
 *
 * @author makejava
 * @version 1.0.0
 **/
@Data
@ToString
@NoArgsConstructor
@ApiModel(value = "SyMissionUserDTO", description = "任务与用户关联表查询请求信息")
public class SyMissionUserDTO {

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id", name = "userId")
    private Integer userId;

    /**
     * 任务发布表id
     */
    @ApiModelProperty(value = "任务发布表id", name = "missionPubId")
    private String missionPubId;

    /**
     * 执行次数 多次任务的执行次数，单次任务为1
     */
    @ApiModelProperty(value = "执行次数 多次任务的执行次数，单次任务为1", name = "times")
    private Integer times;

    /**
     * [{"finish_time":"yyyy-MM-dd HH:mm:ss","times":1,"isFinish":true}]
     */
    @ApiModelProperty(value = "[{"finish_time":"yyyy-MM - dd HH:mm:ss","times":1,"isFinish":true}]", name = "logs")
    private String logs;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "${column.comment}", name = "created")
    private Date created;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "${column.comment}", name = "updated")
    private Date updated;
    @ApiModelProperty(value = "${column.comment}", name = "isDel")
    private Integer isDel;
    @ApiModelProperty(value = "${column.comment}", name = "status")
    private Integer status;

    /**
     * 任务模板id
     */
    @ApiModelProperty(value = "任务模板id", name = "tempId")
    private Integer tempId;
}

